The g_memdup() function is replaced by a safer version in newer versions
of GLib.
#include "gdkdropprivate.h"
#include "gdkprimary-wayland.h"
#include "gdkseatprivate.h"
+#include "gdk-private.h"
+
#include "pointer-gestures-unstable-v1-client-protocol.h"
#include "tablet-unstable-v2-client-protocol.h"
static double *
tablet_copy_axes (GdkWaylandTabletData *tablet)
{
- return g_memdup (tablet->axes,
- sizeof (double) * GDK_AXIS_LAST);
+ return g_memdup2 (tablet->axes, sizeof (double) * GDK_AXIS_LAST);
}
static void